﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Tickz.Commonz
{
    public class Intz
    {
        /// <summary>
        /// int型转换为string型
        /// </summary>
        /// <returns>转换后的string类型结果</returns>
        public static string IntToStr(int intValue)
        {
            return Convert.ToString(intValue);
        }
        /// <summary>
        /// 如果是0-9就返回前面加0的字符串
        /// </summary>
        /// <param name="num"></param>
        /// <returns></returns>
        public static string ToStartZero(string num)
        {
            if (!ValidateExt.IsNumeric(num))
            {
                return num;
            }
            return num.Length > 1 ? num : "0" + num;
        }
    }
}
